#pragma once


// CListCtrlExt
typedef void (*CListCtrlExtCallback)(CDialogEx*,int);

class CListCtrlExt : public CListCtrl
{
	DECLARE_DYNAMIC(CListCtrlExt)

public:
	CListCtrlExt();
	virtual ~CListCtrlExt();

protected:
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnNMRClick(NMHDR *pNMHDR, LRESULT *pResult);
	void setCallback(CDialogEx* dlg,CListCtrlExtCallback callback);

private:
	CDialogEx* dlg;
	CListCtrlExtCallback callback;
};


